package com.hzncc.flowable_diboot.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 产品资料 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-07-18
* Copyright © MyCorp
*/

@TableName("mdl_product_data")
@Getter @Setter @Accessors(chain = true)
public class ProductData extends BaseModel {
    private static final long serialVersionUID = 1180454594316489765L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 装置名称
     */
    @Length(max=100, message="装置名称长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deviceName;

    /**
     * 所属分类
     */
    @Length(max=100, message="所属分类长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String part;

    /**
     * 详细描述
     */
    @Length(max=100, message="详细描述长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String details;

    /**
     * 图片展示
     */
    @TableField()
    private String pic;

    /**
     * 分类
     */
    @TableField()
    private String category;

    /**
     * 视频
     */
    @TableField()
    private String videoURL;

    /**
     * 文件
     */
    @TableField()
    private String docURL;

    /**
     * 图片
     */
    @TableField()
    private String imageURL;


}